package 面向对象;

public class Cat {
    public String name;
    public int age=10;
    public String color;
    public Cat(){

    }
    public Cat(String name,int age,String color){
        this.name=name;
        this.age=age;
        this.color=color;

    }

    public void print(int age){
        System.out.println(age);
        System.out.println(this.age);
    }
    public void eat(){
        System.out.println("名字叫"+name+"的猫在吃东西");
    }
    public void catchMouse(){
        System.out.println("猫在抓老鼠");
    }
    public void show(){
        System.out.println("名字："+name);
        System.out.println("年龄："+age);
        System.out.println("颜色："+color);
    }

}
